package javabook.ch09;
//�츮�� �켱 ������ ���ϴ� ��� 
class ThreadPriority extends Thread{
	public void PriorityTest(String str){
		super(str);
	}
	public void run(){
		try{
			for(int i = 0; i<5; i++){
				Thread.sleep(10);
				System.out.println(i +getName()+"�켱����:" + getPriority());
				
			}
		}catch(InterruptedException e){
			System.out.print(e);
		}
	}

}

class ThreadPriority{
	public static void main(String agrs[]){
		PriorityTest t1 = new PriorityTest(" : ù��° ������");
		PriorityTest t2 = new PriorityTest(" : �ι�° ������");
		PriorityTest t3 = new PriorityTest(" : ����° ������");
		int priority_t1 = Interger.parseInt(args[0]);
		int priority_t1 = Interger.parseInt(args[1]);
		t1.setPrority(priority_t1);
		t2.setPrority(priority_t2);
		t3.setPrority(Thread.MIN_PRIORITY);
		t1.start();
		t2.start();
		t3.start();
	}
}
